package com.guigu.www.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("m_apply")
public class Apply {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;             //序号
    @TableField("APPLY_ID")
    private String applyid;         //生产计划编号
    @TableField("PRODUCT_ID")
    private String productid;           //产品编号
    @TableField("PRODUCT_NAME")
    private String productname;         //产品名称
    @TableField("PRODUCT_DESCRIBE")
    private String productdescribe;         //产品描述
    private String type;            //用途类型
    private Integer amount;          //数量
    private String designer;        //设计人
    private String remark;          //备注
    private String register;            //登记人
    @TableField("REGISTER_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date registertime;      //登记时间
    private String checker;     //复核人
    @TableField("CHECK_SUGGESTION")
    private String checksuggestion;     //审核意见
    @TableField("CHECK_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date checktime;             //审核时间
    @TableField("CHECK_TAG")
    private String checktag;            //审核标志  S001-0: 等待审核  S001-1: 审核通过    S001-2: 审核不通过
    @TableField("MANUFACTURE_TAG")
    private String manufacturetag;      //派工标志  P001-0: 未派工  P001-1: 已派工
    @TableField(exist = false)
    private List<File> detailss;

    @TableField(exist = false)
    private List<Apply> detailsss;
    //注：
    //1、ID为自增长序列，主键
}
